package com.njtoyo.taxi.admin.rest.wrapper.business.driver;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel(value = "司机扣款")
public class MoneyDeductingCreateWrapper {

    @NotNull(message = "司机id不能为空")
    @ApiModelProperty(value = "司机id")
    private Long driverId;

    @NotNull(message = "扣除的金额不能为空")
    @ApiModelProperty(value = "扣除的金额")
    private BigDecimal deduction;

    @NotBlank(message = "扣除金额说明不能为空")
    @Max(value = 200, message = "扣除金额说明最多200字")
    @ApiModelProperty(value = "扣除金额说明")
    private String detail;

}
